package com.hk.yajin.model;

import android.text.TextUtils;

import com.chad.library.adapter.base.entity.MultiItemEntity;

public class ViewPorint implements MultiItemEntity {

    private int view_id;
    private int te_id;
    private String te_avatar;
    private String view_title;
    private int cl_id;
    private String view_cover;
    private String view_brief;
    private String view_content;
    private int view_watch_count;
    private int view_like_count;
    private int view_status;
    private int create_time;
    private String te_name;
    private String detail_url;

    public String getTe_avatar() {
        return te_avatar;
    }

    public void setTe_avatar(String te_avatar) {
        this.te_avatar = te_avatar;
    }

    public String getDetail_url() {
        return detail_url;
    }

    public void setDetail_url(String detail_url) {
        this.detail_url = detail_url;
    }

    public int getView_id() {
        return view_id;
    }

    public void setView_id(int view_id) {
        this.view_id = view_id;
    }

    public int getTe_id() {
        return te_id;
    }

    public void setTe_id(int te_id) {
        this.te_id = te_id;
    }

    public String getView_title() {
        return view_title;
    }

    public void setView_title(String view_title) {
        this.view_title = view_title;
    }

    public int getCl_id() {
        return cl_id;
    }

    public void setCl_id(int cl_id) {
        this.cl_id = cl_id;
    }

    public String getView_cover() {
        return view_cover;
    }

    public void setView_cover(String view_cover) {
        this.view_cover = view_cover;
    }

    public String getView_brief() {
        return view_brief;
    }

    public void setView_brief(String view_brief) {
        this.view_brief = view_brief;
    }

    public String getView_content() {
        return view_content;
    }

    public void setView_content(String view_content) {
        this.view_content = view_content;
    }

    public int getView_watch_count() {
        return view_watch_count;
    }

    public void setView_watch_count(int view_watch_count) {
        this.view_watch_count = view_watch_count;
    }

    public int getView_like_count() {
        return view_like_count;
    }

    public void setView_like_count(int view_like_count) {
        this.view_like_count = view_like_count;
    }

    public int getView_status() {
        return view_status;
    }

    public void setView_status(int view_status) {
        this.view_status = view_status;
    }

    public int getCreate_time() {
        return create_time;
    }

    public void setCreate_time(int create_time) {
        this.create_time = create_time;
    }

    public String getTe_name() {
        return te_name;
    }

    public void setTe_name(String te_name) {
        this.te_name = te_name;
    }



    @Override
    public int getItemType() {
        if (!TextUtils.isEmpty(view_cover)) {
            return 0;
        } else {
            return 1;
        }

    }


}
